package com.uestc.soft.controller;

import com.uestc.soft.service.RIService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.sql.Timestamp;
import java.util.Map;

@RestController
public class RIController {
    @Resource
    private RIService RI_Service;
    @RequestMapping("/RIM/selectByPage")
    public Map<String, Object> selectByPage(@RequestParam int page,
                                            @RequestParam int limit,
                                            Timestamp startDate,
                                            Timestamp endDate,
                                            String proState,
                                            String type,
                                            String iP_Command) {
        return RI_Service.selectByPage(page, limit, startDate,endDate,proState,type,iP_Command);
    }
}
